home *** CD-ROM | disk | FTP | other *** search
/ Resource Library: Multimedia / Resource Library: Multimedia.iso / space / software / unix / xanim / xanim.doc < prev    next >
Encoding:
Text File  |  1992-08-04  |  4.6 KB  |  105 lines

  1.  
  2. This describes the animation types supported and some of their special
  3. features. It's more of an organized rambling but might give insight
  4. into what's going on.
  5.  
  6. FLI/FLC Animations:
  7.  
  8.   FLI is by Autodesk Animator for the PC's. Support is for the 320x200
  9.   images. The file is composed of a series of images and deltas(a delta
  10.   is data that can generate the next image given a previous image) to
  11.   be played in sequence. An FLI animation can also change the color map
  12.   during the anim(this isn't supported for True Color displays).    
  13.   FLC's have a few additional chunks and has support for larger image
  14.   sizes.
  15.  
  16. IFF Animations and Images:
  17.  
  18.   IFF files were developed for the Amiga. Sound chunks are ignored. IFF 
  19.   Animation files are meant to be double buffered. The deltas refer not to 
  20.   the previous image, but the image before the previous(two back). I know
  21.   of 7 types of compressions 1,2,3,4,5,l and J. I've only included types 3,
  22.   5,l and J because those are the only ones I could test. The J type 
  23.   compression has an ANSI chunk at the end which includes the order in
  24.   which the deltas are to be applied and they can be used more than once.
  25.   Type l (small L) type anim is also support in revs 229 and higher. It's
  26.   a compression type I've only found in older animations.
  27.  
  28.   IFF animations can be looping or non-looping. Looping means the last
  29.   two deltas produce images that are the same as the 1st two images. To
  30.   continuously loop an animation, you would not jump back to the beginning
  31.   but to the 2nd image instead. In order to loop non-looping animations
  32.   you would need to jump to the 1st image. There's no way to know ahead
  33.   of time which is which so the default is looping and if you have a
  34.   non-looping animation use the -c switch.
  35.  
  36.   The Amiga has a couple of weird display modes, EHB and HAM. XAnim fully 
  37.   supports EHB animations. HAM can produce 4096 colors(4 bits each red,
  38.   green, and blue) and XAnim will display HAM animations as 332(3 bits
  39.   red, 3 bits green and 2 bits blue). Surprisingly enough, it's not too
  40.   bad. HAM is not truncated to 332 on True Color displays.
  41.  
  42.   IFF supports color cycling chunks that specify color ranges to be
  43.   cycled at specified intervals. Since there's no obvious end to this
  44.   type of animation, I just display it until the key 'g' is pressed inside
  45.   the display window.
  46.  
  47.   Single IFF images are supported as well. no compression and 
  48.   compression 1 are supported. (XAnim makes use of the public domain
  49.   unpacker routine by Jerry Morrison and Steve Shaw). see unpacker.c.
  50.  
  51. GIF Images/Animations.
  52.  
  53.   The GIF file consists of a screen color map and then a series of images,
  54.   each with their own optional color map. The images don't have to be at
  55.   the origin and can be any size smaller than the screen size. This allows
  56.   GIF animations to be created that only update the part of the screen
  57.   that changes. I don't have a program that does this yet but txtmerge is
  58.   a step in that direction. Also the GIF89a spec has included some extensions
  59.   that are animation specific.  Rev 2.29.1 and up has limited support for 
  60.   these.  Comment fields in GIF files are display if you use the -v (verbose)
  61.   option.
  62.  
  63.   GIF images are automatically uncompressed when read in.
  64.  
  65. TXT files
  66.  
  67.   Probably should be called something else. Basically it is a ascii text
  68.   file that lists a number of GIF files to be displayed. Optionally, you
  69.   can specify the sequence the files are displayed in.  Comments aren't
  70.   supported. I need to put a lot of work and thought into improving this
  71.   one.
  72.  
  73.   TXT format needs to have txt91 as the 1st 5 characters in the file.
  74.   Following that there are a series of fields. Fields just have to be
  75.   separated from each other by white space. No extraneous characters
  76.   (ie comments) are supported, yet.
  77.  
  78.      txt91    <--- header so XAnim knows what kind of file it is
  79.      4        <--- number of GIF filenames that follow
  80.      a.gif    <--- gif file to be read in. 1st file is number 0.
  81.      b.gif    
  82.      c.gif
  83.      d.gif    
  84.      6      <--- number of frames that follow. 
  85.      0 1 2 3  <--- display images in this order.
  86.      2 1
  87.  
  88.   The sequence will be a.gif b.gif c.gif d.gif c.gif b.gif. Most likely
  89.   this anim will be looped and the last b.gif will flow smoothly into
  90.   a.gif as it starts over.
  91.  
  92. DL files
  93.  
  94.   I only threw these in because it was easy and pressure from friends.
  95.   As far as I know, they come in three resolutions, 320x200, 160x100 and
  96.   80x50. They consist of a series of images with a frame list at the end
  97.   that gives the order they are displayed in. There's also a field for
  98.   Author and Title that is displayed if you specify -v (verbose) option.
  99.   
  100.  
  101.  
  102. Mark Podlipec  podlipec@dgxyris.webo.dg.com
  103.  
  104.  
  105.